package com.mzy.datepackage.M2022.Aug.thirty_first.service.data_resources;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.mzy.datepackage.M2022.Aug.thirty_first.QuoteParams;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 定制协议客户端资源
 */
@Data
@ApiModel(value = "定制协议客户端资源")
public class DzxyClient extends QuoteParams {


    /**
     * ip地址
     */
    @ApiModelProperty(value = "IP地址")
//    @NotEmpty(message = "IP地址不能为空")
    private String ip;

    /**
     * 客户端名称
     */
    @ApiModelProperty(value = "客户端名称")
//    @NotEmpty(message = "客户端名称不能为空")
    private String name;

    /**
     * 端口
     */
    @ApiModelProperty(value = "客户端端口")
//    @Range(min = 1,max = 65535,message = "端口范围在1-65535之间")
    private int port;

    /**
     * uri
     */
    @ApiModelProperty(value = "客户端URL")
//    @NotEmpty(message = "客户端URL不能为空")
    private String uri;

    /**
     * 类型, 0: 内网, 1: 外网
     */
    @ApiModelProperty(value = "类型, 0:内网, 1:外网")
//    @Range(min = 0,max = 1,message = "类型只能填写0/1")
    private int type;

    /**
     * 说明
     */
    @ApiModelProperty(value = "说明")
    private String info;

    /**
     * webservice头部
     */
    @ApiModelProperty(value = "webService头部")
//    @NotEmpty(message = "webService头部不能为空")
    private String httpBodyHead;

    /**
     * webservice尾部
     */
    @ApiModelProperty(value = "webService尾部")
//    @NotEmpty(message = "webService尾部不能为空")
    private String httpBodyTail;

    /**
     * 唯一ID
     */
    @ApiModelProperty(value = "唯一ID")
    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    private String uniqueId;

    /**
     * 是否启用ssl, 0: 不启用, 1: 启用
     */
    @ApiModelProperty(value = "是否启用ssl服务, 0:不启用, 1:启用")
//    @Range(min = 0,max = 1,message = "启停只能选择0/1")
    private int enableSsl;
}
